Skip to content

Conversation

@BastiaanOlij
Copy link
Contributor

This PR applies a fix to the compatibility renderer that makes ViewportTexture work properly with an overridden color buffer on the texture.

Note

This PR extracts the changes to the compatibility renderer from #109955
As these changes are pretty straight forward, this PR can likely go ahead without waiting on further discussion on the Vulkan changes.

This is functionality that has been broken since the introduction of the compatibility renderer but is a regression from this feature in Godot 3. It comes up in user complaints every few months. It can be worked around at the cost of performance (performing a separate render).

It would be nice to take along in the Godot 4.5 release as the changes are unlikely to have an impact however a cherry pick to 4.5.1 is reasonable.

See godotengine/godot-demo-projects#1144 for a demo of the functionality (requires a PCVR headset).

@BastiaanOlij BastiaanOlij added this to the 4.6 milestone Aug 27, 2025
@BastiaanOlij BastiaanOlij self-assigned this Aug 27, 2025
@BastiaanOlij BastiaanOlij requested a review from a team as a code owner August 27, 2025 03:11
@BastiaanOlij BastiaanOlij added bug topic:rendering topic:xr regression cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release labels Aug 27, 2025
@BastiaanOlij BastiaanOlij requested review from dsnopek and removed request for a team August 27, 2025 03:12
Copy link
Contributor

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I haven't tested, but the code looks good to me

@dsnopek dsnopek requested a review from a team August 27, 2025 13:30
@Repiteo Repiteo merged commit 1a6d3c2 into godotengine:master Sep 16, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Sep 16, 2025

Thanks!

@Repiteo
Copy link
Contributor

Repiteo commented Sep 16, 2025

Cherry-picked to 4.5

@Repiteo Repiteo removed the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Sep 16, 2025
@BastiaanOlij BastiaanOlij deleted the fix_openxr_viewport_texture_compatibility branch September 24, 2025 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants